package com.jianshuai.service.impl;

import com.jianshuai.domain.Floor;
import com.jianshuai.mapper.FloorMapper;
import com.jianshuai.service.IFloorService;
import com.jianshuai.utils.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FloorServiceImpl implements IFloorService {

    @Autowired
    private FloorMapper floorMapper;

    @Override
    public JSONResult addFloor(List<Floor> floors) {
        floorMapper.addFloor(floors);
        return new JSONResult();
    }
}
